package com.study.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.study.model.mdao.BrandMapper;
import com.study.model.pojo.Brand;

@Service
public class BrandService {
	@Autowired
	BrandMapper bMapper;
	
	//查询所有品牌
	public List<Brand> findAll(){
		return bMapper.findAll();
	}
	
	//添加品牌
	public void addBrand(Brand brand) {
		bMapper.addBrand(brand);
	}
	
	//删除品牌
	public void delBrand(String braId) {
		bMapper.delBrand(braId);
	}
}
